package com.itheima.zzyl.service.impl;
import com.itheima.zzyl.mapper.RoomTypeMapper;
import com.itheima.zzyl.pojo.RoomType;
import com.itheima.zzyl.service.RoomTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;
import java.util.List;

@Service("roomTypeService")
public class RoomTypeServiceImpl implements RoomTypeService {
    @Autowired
    private RoomTypeMapper roomTypeMapper;
    @Override
    public List<RoomType> getAllRoomType(Integer status) {
        return roomTypeMapper.getRoomTypes(status);
    }
}
